﻿using System;
using System.Collections.Generic;
using DesignPattern.Builder.Computer;

namespace DesignPattern.Builder
{

    public class BuilderAcerComputer : AbsBuilderComputer
    {

        public BuilderAcerComputer()
        {
            this.computer = new Computer.Computer();
        }

        public override void SetHost()
        {
            Console.WriteLine("设置Acer主机");
            this.computer.host = new Host() { Type = "a-h-2014-01", Name = "巴神", ProductionDate = DateTime.Now.AddYears(-10) };
        }

        public override void SetKeyboarder()
        {
            Console.WriteLine("设置Acer键盘");
            this.computer.keyboard = new Keyboarder() { Type = "a-k-2014-01", Name = "坐神", ProductionDate = DateTime.Now.AddYears(-5) };
        }

        public override void SetMouse()
        {
            Console.WriteLine("设置Acer鼠标");
            this.computer.mouse = new Mouse() { Type = "a-m-2014-01", Name = "点神", ProductionDate = DateTime.Now.AddYears(-3) };
        }
    }

}
